remedy for rejection of plaint